import request from '/@/utils/request';

/**
 * 以下为AdminRestore接口地址
 *
 * @method getList 获取列表
 * @method getParent 获取父级分类
 * @method save 编辑保存
 * @method change 修改
 * @method delete 删除
 */
export function AdminRestoreApi() {
	return {
		getList: (params?: object) => { //获取列表
			return request({
				url: 'AdminRestore/index.html',
				method: 'get',
				params,
			});
		},
		restore:(data?: object) => { //还原
			return request({
				url: 'AdminRestore/restore.html',
				method: 'post',
				data,
			});
		},
		download:(data?: object) => { //下载
            return request({
                url: 'AdminRestore/download.html',
                method: 'post',
                data,
            });
        },
		delete:(data?: object) => { //删除
			return request({
				url: 'AdminRestore/delete.html',
				method: 'post',
				data,
			});
		}
	};
}
